<div id="sidebar">
<div id="">
    <h2><?php __('Actions'); ?></h2>
        <div class="actions">
	<ul>

               <li><?php echo $this->Html->link(__('List Events', true), array('controller' => 'events', 'action' => 'index')); ?> </li>
		<!--
                <li><?php echo $this->Html->link(__('New Event', true), array('controller' => 'events', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
               -->
  </ul>
</div>
</div>
</div>


<div class="invites form">
<?php echo $this->Form->create('Invite', array('url'=>'/invites/add/'.$event_id));?>
	<fieldset>
 		<legend><?php __('Invite'); ?></legend>
	<?php
                echo $form->hidden('event_id', array('value' => $event_id));
               //This hidden form will get the event id from the invites controller
               //and add it into the slected invite without the user ever needign to
                //do a thing.
                echo $this->Form->input('email_addr');

               $current_time =   date('Y-m-d H:i:s', time());
                echo $form->hidden('sent_ts', array('value' => $current_time));
               //Likewise these two lines of code will get the current time, and asign it as the
                //time the invite was sent out without the user needing to do something.
       ?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
